/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.proyectos.abstrac;

import java.math.BigDecimal;
import java.util.List;
import java.util.TreeMap;

/**
 *
 * @author Rafael
 */
public interface InterfaceLocal<T> {
    public void add(T entity) throws Exception;

    public void save(T entity) throws Exception;

    public void delete(T entity) throws Exception;

    public T get(BigDecimal id) throws Exception;
    
    public List<T> query(String named,TreeMap vparametros);
}
